package com.hqhy.like.admin.account.pojo.param;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

import static com.hqhy.like.common.validation.account.UserRules.*;

/**
 * 搜索功能的参数类
 */
@Data
public class UserSearchParam {

    /**
     * 用户名
     */
    @NotEmpty(message = MESSAGE_USERNAME_NOT_NULL)
    @Pattern(regexp = PATTERN_USERNAME, message = MESSAGE_USERNAME_PATTERN)
    private String username;

    /**
     * 手机号码
     */
    private String phone;

}
